package com.tianhe.perimeter.generator.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tianhe.perimeter.generator.common.utils.PageUtils;
import com.tianhe.perimeter.generator.common.utils.Query;
import com.tianhe.perimeter.generator.dao.CfgPerimeterEventTypeDao;
import com.tianhe.perimeter.generator.entity.CfgPerimeterEventTypeEntity;
import com.tianhe.perimeter.generator.service.CfgPerimeterEventTypeService;
import org.springframework.stereotype.Service;
import java.util.Map;

@Service("cfgPerimeterEventTypeService")
public class CfgPerimeterEventTypeServiceImpl extends ServiceImpl<CfgPerimeterEventTypeDao, CfgPerimeterEventTypeEntity> implements CfgPerimeterEventTypeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<CfgPerimeterEventTypeEntity> page = this.page(
                new Query<CfgPerimeterEventTypeEntity>().getPage(params),
                new QueryWrapper<CfgPerimeterEventTypeEntity>()
        );

        return new PageUtils(page);
    }

}